<template>
    <div class="super-admin">
        <header-component :page-list="pageList"/>
        <router-view/>
    </div>
</template>

<script setup>
import { useSuperAdminStore } from "@/stores/superAdmin";
import HeaderComponent from "@/components/header/HeaderComponent.vue";
import {
    FolderDetailsReference,
    TaskApproved,
} from '@vicons/carbon'

let pageList = reactive([
    {
        name: '资源管理',
        icon:h(FolderDetailsReference),
        pathName:'Resources',
        isChoose: true
    },
    {
        name: '任务管理',
        icon:h(TaskApproved),
        pathName:'Task',
        isChoose: false
    },
])

const superAdmin = useSuperAdminStore()
// 获取题库
superAdmin.updateTaskQuestionBank()
// 获取数据源
superAdmin.updateDataSource()

</script>

<style scoped lang="less">

</style>